<?php

/**
 * @author HoangLuong - VCCorp
 * @copyright 2013
 */

class content_admin_model extends CI_Model
{

    public function __construct()
    {
        // Call the Model constructor
        parent::__construct();        
    }   
    
    function update_content($id,$data){
        $this->db->where('id',$id)
                 ->update('landing_content',$data);
    }
    
    function get_content_by_id($id){
        $this->db->select('*')
                 ->from('landing_content')
                 ->where('id',$id);
        $rs = $this->db->get();
        $result = $rs->result_array();
        $rs->free_result();
        return $result;
    }
    
}

?>